package com.th.supcom.pds.drugsupply.client.service;

import java.util.List;

import net.carefx.framework.container.client.exception.UiException;

import com.extjs.gxt.ui.client.data.PagingLoadConfig;
import com.extjs.gxt.ui.client.data.PagingLoadResult;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.th.supcom.pds.common.client.commom.PdsAuditPrescServiceFactory;
import com.th.supcom.pds.drugsupply.client.model.DrugInfoModel;
import com.th.supcom.pds.drugsupply.client.model.DrugSearchModel;

/**
 * PdsPropertyMaintain 服务接口.
 * 
 * 药品属性维护.
 */
@RemoteServiceRelativePath (PdsAuditPrescServiceFactory.BASE_URL + "phamBasicInfo.do")
public interface PdsPropertyMaintainRpc extends RemoteService
{

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    /**
     * 查询信息.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public DrugInfoModel getPhamBasicInfoById (Long id) throws UiException;

    /**
     * 分页查询信息.
     * 
     * @param config
     * @return
     */
    public PagingLoadResult <DrugInfoModel> getPhamBasicInfoListWithPaging (PagingLoadConfig config, DrugSearchModel model) throws UiException;

    /**
     * 按名字分页查询信息(用于药品分装).
     * 
     * @param config
     * @return
     */
    public PagingLoadResult <DrugInfoModel> getPhamBasicInfoListWithPagingByName (PagingLoadConfig config, String name, String deptCode);

    /**
     * 修改信息.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public void modifyPhamBasicInfo (List <DrugInfoModel> modelList, String deptCode) throws UiException;

    /**
     * 按名字分页查询信息(用于供药属性维护).
     * 
     * @param config
     * @return
     */
    public PagingLoadResult <DrugInfoModel> searchPhamBasicInfoListWithPagingByName (PagingLoadConfig config, String name, String code);
}